package com.imooc.pan.server.common.config;

import com.imooc.pan.core.constants.RPanConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 分享的 url
 */
@Component
@ConfigurationProperties(prefix = "com.imooc.pan.server")
@Data
public class PanServerConfig {
    //@Value("${server.port}")
    //private Integer serverPort;

    /**
     * 文件分片的过期天数
     */
    private Integer chunkFileExpirationDays = RPanConstants.ONE_INT;

    /**
     * 分享链接的前缀，这里的属性是默认的赋值，先初始化 serverPort
     */
    private String sharePrefix = "http://localhost:8082/share/";

}

